package br.com.buildup.cripto;

import java.security.NoSuchAlgorithmException;

public class CryptographyMD5 extends CryptographyGeneric implements Cryptography {

    @Override
    public String encrypt(String value) throws NoSuchAlgorithmException {
        return encryptByAlgorithm("MD5", value);
    }
    
    @Override
    public String decrypt(String value) throws Exception {
        throw new RuntimeException("Not supported method...");
    }

}
